
{include 'header.tpl'}
<div class="contant">
    <div class="header">
        <div class="header_s">
            <span class="back"><a href="javascript:history.go(-1);"><i class="iconfont fan">&#xe679;</i></a></span>
            <span class="title">选择收货地址</span>
            <span class="add_ads"><a href="{$back_url}" style="color: white;">保存</a></span>
            <div class="clear"></div>
        </div>
    </div>


    <div data-role="container" class="container ordercreates">
        <div class="new-ct">
            <div class="new-addr">
                <ul class="new-mu_l2w">
                    {if !empty($data)}
                    {foreach from=$data item=item name=foo}
                    <li class="new-mu_l2">
                        <p class="new-tit new-p-re">
                            <span class="new-txt"> {$item.contact}</span>
                            <span class="new-txt-rd2">{$item.phone}</span>
                            {if $item.is_default eq 1}<span class="new-txt-rd2 new-option-r" style="color: #66F4DF"><span class="new-icon2"></span>默认地址</span>{/if}
                            {if $item.is_default eq 2}<span class="new-txt-rd2 new-option-r" onclick="lc()" id="{$item.auto_id}"><span class="new-icon2" ></span><a href="/wwwmall/add/updateDeault?id={$item.auto_id}">设为默认</a></span>{/if}
                        </p>
                        <span class="new-mu_l2a new-p-re">
                            <span class="new-mu_l2cw">{$item.address}{$item.housemember}</span>
                                <div class="new-addr-btn">
                                    <a href="/wwwmall/add/getOneAddress?id={$item.auto_id}">编辑</a>
                                        <span class="new-addr-bar">|</span>
                                            <a href="/wwwmall/add/del?id={$item.auto_id}" >删除</a>
                                </div>
                        </span>
                    </li>
                    {/foreach}
                    {/if}
                    {*<li class="new-mu_l2">*}
                        {*<p class="new-tit new-p-re">*}
                            {*<span class="new-txt"> 刘峰</span>*}
                            {*<span class="new-txt-rd2">136****4335</span>*}
                            {*<span class="new-txt-rd2 new-option-r"><span class="new-icon2"></span>设为默认</span> </p>*}
{*<span class="new-mu_l2a new-p-re">*}
{*<span class="new-mu_l2cw">湖南长沙市岳麓区东方红镇延农五期16栋502室</span>*}
{*<div class="new-addr-btn">*}
    {*<a href="#">编辑</a>*}
    {*<span class="new-addr-bar">|</span><a href="javascript:void(0);" addressid="137849346" onclick="delClick(this);">删除</a>*}
{*</div>*}
{*</span>*}
                    {*</li>*}
                </ul>
                <a target="_blank" href="/wwwmall/add/getOneAddress" class="add_adress">添加新地址</a>
            </div>
        </div>
    </div>
</div>
<script>

//    function lc(){
//
//    }


</script>
</body>
</html>
